#ifndef FIRSTDLL_LIBRARY_H
#define FIRSTDLL_LIBRARY_H

#define CQAPPID "com.example.democ" //请修改AppID，规则见 http://d.cqp.me/Pro/开发/基础信息
#define CQAPPINFO CQAPIVERTEXT "," CQAPPID

#endif

enum MSG_TYPE {
    PRIVATE_MSG = 21,
    GROUP_MSG = 2,
    DISCUSS_MSG = 4
};

/**
 * 发送消息
 * @param type 类型 2:群消息 4:讨论组消息 21:私聊消息
 * @param subType 子类型 1:来自在线状态 2:来自群 3:来自讨论组 11:来自好友
 * @param sendTime 发送时间
 * @param fromGroup 从哪个组
 * @param fromQQ 从哪个QQ
 * @param message 消息
 * @param font 字体
 * @return
 */
std::string buildPostMsg(int32_t type, int32_t subType, int32_t sendTime, int64_t fromGroup,
                         int64_t fromQQ, const char *message, int32_t font);

void processMsg(int32_t type, int32_t subType, int32_t sendTime, int64_t fromGroup,
                int64_t fromQQ, const char *message, int32_t font);

std::string sendToBackend(const std::string postMsg);

